package com.guohengspace.mq.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName ResponseEnum
 * @Description
 * @Author GuanNing
 * @Date 2023/1/6 17:00
 */
@Getter
@AllArgsConstructor
public enum ResponseEnum implements BusinessExceptionAssert {

    /**
     * Bad licence type
     */
    BAD_LICENCE_TYPE(7001, "Bad licence type."),

    /**
     * Licence not found
     */
    LICENCE_NOT_FOUND(7002, "Licence not found."),

    /**
     * 绑定参数校验异常
     */
    VALID_ERROR(6000, "参数校验异常"),

    /**
     * 服务器繁忙，请稍后重试
     */
    SERVER_BUSY(9998, "服务器繁忙"),

    /**
     * 服务器异常，无法识别的异常，尽可能对通过判断减少未定义异常抛出
     */
    SERVER_ERROR(9999, "网络异常")
    ;

    /**
     * 返回码
     */
    private int code;
    /**
     * 返回消息
     */
    private String message;
}
